function getInfoUser() 
{
	var sessionid = getQuerystring('session_id');
	var sign = getQuerystring('sign_user');
	var user = getQuerystring('username');
	var req = getQuerystring('signed_request');
	
    var ret = new Array();
	ret.push(sessionid);
	ret.push(sign);
	ret.push(user);
	ret.push(req);
	ret.push("http://cotuong.athena.vn/cotuong/apilive.php");
	return ret;
}
function getQuerystring(key, default_)
{
  if (default_==null) default_="";
  key = key.replace(/[\[]/,"\\\[").replace(/[\]]/,"\\\]");
  var regex = new RegExp("[\\?&]"+key+"=([^&#]*)");
  var qs = regex.exec(window.location.href);
  if(qs == null)
    return default_;
  else
    return qs[1];
}
function getFlashMovieObject(movieName)
{
    if (window.document[movieName]) 
    {
      return window.document[movieName];
    }
    if (navigator.appName.indexOf("Microsoft Internet")==-1)
    {
    if (document.embeds && document.embeds[movieName])
      return document.embeds[movieName]; 
    }
    else // if (navigator.appName.indexOf("Microsoft Internet")!=-1)
    {
    return document.getElementById(movieName);
    }
}
